/**
 * Created by Administrator on 2014/8/20.
 */

module.exports = function(originalXml){
    var simplifyXml = JSON.parse(JSON.stringify(originalXml));
    for(var key in simplifyXml){
        if(simplifyXml[key].length == 1){
            simplifyXml[key] = simplifyXml[key][0];
        }
    }
    return simplifyXml;
};
